home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / psp.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  3KB  |  127 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  4.  
  5. <MODE>
  6.     <PROPS>
  7.         <PROPERTY NAME="commentStart" VALUE="<!--" />
  8.         <PROPERTY NAME="commentEnd" VALUE="-->" />
  9.         <PROPERTY NAME="indentNextLines" VALUE="\s*[^#]{3,}:\s*(#.*)?" />
  10.     </PROPS>
  11.  
  12.     <RULES IGNORE_CASE="TRUE">
  13.  
  14.         <SPAN TYPE="LITERAL4" DELEGATE="DIRECTIVE">
  15.             <BEGIN><%@</BEGIN>
  16.             <END>%></END>
  17.         </SPAN>
  18.  
  19.         <!-- PSP comment -->
  20.         <SPAN TYPE="COMMENT2">
  21.             <BEGIN><%--</BEGIN>
  22.             <END>--%></END>
  23.         </SPAN>
  24.  
  25.         <!-- inline Python code -->
  26.         <SPAN TYPE="LITERAL3" DELEGATE="python::MAIN">
  27.             <BEGIN><%</BEGIN>
  28.             <END>%></END>
  29.         </SPAN>
  30.  
  31.         <!-- Client-side javascript -->
  32.         <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  33.             <BEGIN><script language="jscript"></BEGIN>
  34.             <END></script></END>
  35.         </SPAN>
  36.  
  37.         <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  38.             <BEGIN><script language="javascript"></BEGIN>
  39.             <END></script></END>
  40.         </SPAN>
  41.  
  42.         <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  43.             <BEGIN><script></BEGIN>
  44.             <END></script></END>
  45.         </SPAN>
  46.  
  47.         <!-- Server-Side include -->
  48.         <SPAN TYPE="MARKUP">
  49.             <BEGIN><!--#</BEGIN>
  50.             <END>--></END>
  51.         </SPAN>
  52.  
  53.         <!-- SGML comment -->
  54.         <SPAN TYPE="COMMENT1">
  55.             <BEGIN><!--</BEGIN>
  56.             <END>--></END>
  57.         </SPAN>
  58.  
  59.         <!-- stylesheet -->
  60.         <SPAN TYPE="MARKUP" DELEGATE="css::MAIN">
  61.             <BEGIN><STYLE></BEGIN>
  62.             <END></STYLE></END>
  63.         </SPAN>
  64.  
  65.         <!-- markup tags -->
  66.         <SPAN TYPE="MARKUP" DELEGATE="TAGS">
  67.             <BEGIN><</BEGIN>
  68.             <END>></END>
  69.         </SPAN>
  70.  
  71.         <!-- SGML entities -->
  72.         <SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
  73.             <BEGIN>&</BEGIN>
  74.             <END>;</END>
  75.         </SPAN>
  76.  
  77.     </RULES>
  78.  
  79.     <!-- ESCAPE is not exactly right but it is needed to correctly
  80.          handle JavaScript in on* parameters -->
  81.     <RULES SET="TAGS" DEFAULT="MARKUP">
  82.         <SPAN TYPE="LITERAL1" ESCAPE="\">
  83.             <BEGIN>"</BEGIN>
  84.             <END>"</END>
  85.         </SPAN>
  86.  
  87.         <SPAN TYPE="LITERAL1" ESCAPE="\">
  88.             <BEGIN>'</BEGIN>
  89.             <END>'</END>
  90.         </SPAN>
  91.  
  92.         <SEQ TYPE="OPERATOR">=</SEQ>
  93.  
  94.         <!-- PSP comment -->
  95.         <SPAN TYPE="COMMENT2">
  96.             <BEGIN><%--</BEGIN>
  97.             <END>--%></END>
  98.         </SPAN>
  99.  
  100.         <SPAN TYPE="LITERAL3" DELEGATE="python::MAIN">
  101.             <BEGIN><%</BEGIN>
  102.             <END>%></END>
  103.         </SPAN>
  104.     </RULES>
  105.  
  106.     <RULES SET="DIRECTIVE" DEFAULT="LITERAL4">
  107.  
  108.         <SPAN TYPE="LITERAL1">
  109.             <BEGIN>"</BEGIN>
  110.             <END>"</END>
  111.         </SPAN>
  112.  
  113.         <SPAN TYPE="LITERAL1">
  114.             <BEGIN>'</BEGIN>
  115.             <END>'</END>
  116.         </SPAN>
  117.  
  118.         <SEQ TYPE="OPERATOR">=</SEQ>
  119.  
  120.         <KEYWORDS>
  121.             <KEYWORD4>include</KEYWORD4>
  122.  
  123.             <KEYWORD4>file</KEYWORD4>
  124.         </KEYWORDS>
  125.     </RULES>
  126. </MODE>
  127.